ubsan: add clang 5.0 support
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 20 Oct 2017 07:30:13 +0000 (09:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 Oct 2017 07:30:13 +0000 (09:30 +0200)
commit4e3fb2fb47d6403f8411727eefe2b885c6ad514e
treed1ec4f4572859c0b0da17bdf0bf84ed460befff9
parent78e693cc123296db2f79e792cf474544c1ffd064
ubsan: add clang 5.0 support

clang 5.0 changed the layout of the type_mismatch_data structure and
introduced __ubsan_handle_type_mismatch_v1 and
__ubsan_handle_pointer_overflow.

This commit adds support for the new structure layout, adds the
missing handlers and the new types for type_check_kinds.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
[jb: unconditionally emit always the same message in
     __ubsan_handle_pointer_overflow()]
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
xen/common/ubsan/ubsan.c
xen/common/ubsan/ubsan.h